
import request from "@/utils/request"

const myHttp = {
    get: function(url: string, params?: object){
        return request<any, ResponseRecords>({
            url: url,
            method: "get",
            params: params,
        })
    },
    post: function(url: string, params?: object){
        return request<any, ResponseRecords>({
            url: url,
            method: "post",
            data: params,
        })
    },

}

export default myHttp
